all:  SAMPLE01 TS000001 SUITE001
	
SAMPLE01:$(SAMPLE1_PGM)/SAMPLE01.cbl
	cobc -m -o libSample1 $(SAMPLE1_PGM)/SAMPLE01.cbl
	mv libSample1.so lib/

TS000001: $(SAMPLE1_PGM)/TS000001.cbl
	cobc -m -I $(CBU_COPY_PATH) -I $(SAMPLE1_COPY_PATH) -L $(SAMPLE1_LIB_PATH) -l Sample1 -o libTS1 $(SAMPLE1_PGM)/TS000001.cbl 
	mv libTS1.so tests/lib/


SUITE001: $(SAMPLE1_PGM)/SUITE001.cbl 
	cobc -x -I $(CBU_COPY_PATH) -I $(SAMPLE1_COPY_PATH) $(SAMPLE1_PGM)/SUITE001.cbl  -L $(SAMPLE1_TEST_LIB_PATH) -l TS1 -L $(CBU_LIB_PATH) -l COBOLUnit
	mv ./SUITE001 tests/

clean:
	rm -rf *.so
	rm -rf lib/
	rm -rf tests/	
	mkdir lib/
	mkdir tests/
	mkdir tests/lib/


